<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    <base href="<%=basePath%>"/>
</head>
<body>
<center>
    <h1>角色列表</h1>
    <a href="<%=basePath%>view/system/role/addRole.jsp">增加</a>&nbsp;按名称<input type="text">查询
    <hr>
    <table border="1" width="80%">
        <tr>
            <td>用户ID</td>
            <td>姓名</td>
            <td>性别</td>
            <td>地址</td>
            <td colspan="2">操作</td>
        </tr>
        <c:forEach items="${roleList_db }" var="role">
            <tr>
                <td>${role.role_id }</td>
                <td>${role.name }</td>
                <td>${role.state }</td>
                <td>${role.description }</td>
                <td><a href="<%=basePath%>roleController.do?method=deleteRole&role_idStr=${role.role_id }">删除</a></td>
                <td><a href="<%=basePath%>roleController.do?method=updateUIRole&role_idStr=${role.role_id }">修改</a></td>
                <td><a href="<%=basePath%>permissionController.do?method=FPPermissionUI&role_idStr=${role.role_id }">分配权限</a>
                </td>
            </tr>
        </c:forEach>

    </table>
    <p>
        <input type="button" value="首頁">
        <input type="button" value="上一页">
        <input type="button" value="1">
        <input type="button" value="2">
        <input type="button" value="3">
        <input type="button" value="4">
        <input type="button" value="5">
        <input type="button" value="6">
        <input type="button" value="7">
        <input type="button" value="8">
        <input type="button" value="9">
        <input type="button" value="10">
        <input type="button" value="下一页">
        <input type="button" value="尾页">
</center>

</body>
</html>